<!--
 * @FilePath     : /study_code/css/transition-abbreviation.html
 * @Description  : transition 过渡简写
 * @Date         : 2025-04-27 16:41:05
 * @Author       : Fang YingGui
 * @LastEditors  : fangyinggui 18715384437@163.com
 * @LastEditTime : 2025-04-27 16:41:06
-->
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>documentName</title>
    <link rel="stylesheet" href="" />
    <style>
      #box1 {
        width: 100px;
        height: 40px;
        background: lightblue;
        position: absolute;
        top: 100px;
        left: 100px;
        /* 过渡 */
        transition: all 2s ease-in-out 0.5s;
      }
    </style>
  </head>
  <body>
    <div id="box1">内容</div>

    <hr />
    <button id="btn1">内容右移 50px</button>

    <script>
      btn1.onclick = function() {
        box1.style.left = '350px'
      }
    </script>
  </body>
</html>
